#include <cstdint>
#include <iostream>
#include <istream>
#include <vector>

using ll = int64_t;

ll n;
std::vector<std::vector<ll>> m;

int main(){
    std::cin>>n;
    m.resize(n+1);
    for(ll i=1;i<=n-1;i++){
        ll u,v;
        std::cin>>u>>v;
        m[u].push_back(v);
        m[v].push_back(u);
    }
    
}